const DIC = {
  vaild: [{
    label: '无需扫码',
    value: '0'
  }, {
    label: '扫一个二维码',
    value: '1'
  },
  {
    label: '只需填写异常项',
    value: '3'
  }],
  status:[
    {
      label: '审核中',
      value: '0'
    }, {
      label: '审核完成',
      value: '1'
    },
  ]
}
export const tableOption = {
    "border": false,
    // "index": true,
    // "indexLabel": "序号",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    'selection': true,
    "searchMenuSpan": 6,
    "addBtn": false,
    editBtn: false,
    delBtn: false,
   
    "refreshBtn": false,
    "columnBtn": false,
    "searchShowBtn": false,
    "searchIcon":false,
    "searchShow": true,
    labelWidth: 120,
    // menuType: 'menu',
    // menuBtn: true,
    // menu:false,
  "column": [
	  // {
    //   "type": "input",
    //   "label": "主键",
    //   "prop": "id",
    //   "span": 12
    // },	
      {
      "type": "input",
      "label": "计划编号",
      "prop": "planNum",
      "span": 12,
      "addDisplay":false,
      "editDisplay":false,
      width:130,
      search:true
    },
    	  {
      "type": "input",
      "label": "计划名称",
      "prop": "planName",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入计划名称',
        trigger: 'blur'
      }],
      search:true,
      width:150
    },	  {
      "label": "部门",
      "prop": "deptId",
      "formslot": true,
      'slot':true,
      "span": 12 ,
      dataType:"number",
      width:150,
      rules: [{
        required: true,
        message: '请选择部门',
        trigger: 'change'
      }]
    },	 
     {
      "label": "责任人",
      "prop": "liableUserId",
      "span": 12,
      "formslot": true,
      'slot':true,
      width:150,
      rules: [{
        required: true,
        message: '请选择责任人',
        trigger: 'change'
      }],
    },	 
    {
      "label": "审核人",
      "prop": "reviewerId",
      "span": 12,
      "formslot": true,
      'slot':true,
      width:150,
      rules: [{
        required: true,
        message: '请选择审核人',
        trigger: 'change'
      }],
     
    },	
     {
      "type": "number",
      "label": "巡检周期",
      "prop": "inspectCycle",
      'slot':true,
      "span": 12,
      rules: [{
        required: true,
        message: '请输入巡检周期',
        trigger: 'blur'
      }],
      dataType:"number",

    },	  {
      "type": "select",
      "label": "巡检周期单位",
      "prop": "cycleUnit",
      dicUrl: '/admin/dict/type/time_unit',
      "span": 12,
      rules: [{
        required: true,
        message: '请选择巡检周期',
        trigger: 'change'
      }],
      width:130
    },	 
     {
      type: 'input',
      // "formslot": true,
      // 'slot':true,
      "label": "审核状态",
      "prop": "status",
      "dicUrl": '/admin/dict/type/act_task_status',
      "span": 12,
      "addDisplay":false,
      "editDisplay":false,
    },	 
     {
      "type": "select",
      "label": "有效时间单位",
      dicUrl: '/admin/dict/type/time_unit',
      "prop": "effectiveUnit",
      "span": 12,
      rules: [{
        required: true,
        message: '请选择有效单位',
        trigger: 'change'
      }],
      width:130
    },	  {
      "type":"number",
      "label": "提前生成时间",
      "prop": "generateTime",
      'slot':true,
      "span": 12,
      dataType:"number",
      rules: [{
        required: true,
        message: '请输入提前生成时间',
        trigger: 'blur'
      }],
      width:130
    },	  {
      "type": "select",
      "label": "生成时间单位",
      "prop": "generateUnit",
      dicUrl: '/admin/dict/type/time_unit',
      "span": 12,
      rules: [{
        required: true,
        message: '请选择生成时间单位',
        trigger: 'change'
      }],
      width:130
    },	  {
      type: 'number',
      dataType:"number",
      "label": "提醒时间",
      'slot':true,
      "prop": "noticeTime",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入提醒时间',
        trigger: 'blur'
      }],
      width:130
    },	
    {
      type: 'number',
      "label": "计划有效时间",
      "prop": "planEffectiveTime",
      "span": 12,
      'slot':true,
      dataType:"number",
      rules: [{
        required: true,
        message: '请输入计划有效时间',
        trigger: 'blur'
      }],
      width:130
    },	
    {
      type: 'number',
      "label": "任务有效时间",
      dataType:"number",
      'slot':true,
      "prop": "taskEffectiveTime",
      "span": 12,
      rules: [{
        required: true,
        message: '请输入任务有效时间',
        trigger: 'blur'
      }],
      width:130
    },	
      {
      "type": "select",
      "label": "提醒时间单位",
      dicUrl: '/admin/dict/type/time_unit',
      "prop": "noticeUnit",
      "span": 12,
      rules: [{
        required: true,
        message: '请选择提醒时间单位',
        trigger: 'change'
      }],
      width:130
    },	  {
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      "label": "计划开始时间",
      "prop": "beginTime",
      rules: [{
        required: true,
        message: '请输入计划开始时间',
        trigger: 'change'
      }],
      "span": 12,
      width:140
    },	  {
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      "label": "计划结束时间",
      "prop": "endTime",
      rules: [{
        required: true,
        message: '请输入计划结束时间',
        trigger: 'change'
      }],
      "span": 12,
      width:140
    },	  {
      type: 'datetime',
      
      "label": "上次生成时间",
      "prop": "lastGenerateTime",
      "span": 12,
      "addDisplay":false,
      "editDisplay":false,
      width:140
    },	  {
      type: 'datetime',
     
      "label": "下次生成时间",
      "prop": "nextGenerateTime",
      "span": 12,
      "addDisplay":false,
      "editDisplay":false,
      width:140
    },	 
    //  {
    //   "type": "select",
    //   "label": "是否启用",
    //   "prop": "enable",
    //   "dicData": DIC.status,
    //   "span": 12,
    //   search:true,
    //   "addDisplay":false,
    //   "editDisplay":false,
    // },	
      {
      "type": "select",
      "label": "巡检设置",
      "prop": "inspectSettings",
      "dicData": DIC.vaild,
      rules: [{
        required: true,
        message: '请选择巡检设置',
        trigger: 'change'
      }],
      "span": 12
    },	  {
      "type": "select",
      "label": "策略",
      "prop": "strategyId",
      dicUrl:'/ems/emsinsinspectstrategy/list',
      rules: [{
        required: true,
        message: '请选择策略',
        trigger: 'change'
      }],
      "span": 12,
      props: {
        label: "strategyName",
        value: "id"
      },
      
      
    },	
    //   {
    //   "type": "input",
    //   "label": "创建者",
    //   "prop": "createBy",
    //   "span": 12
    // },	
    //   {
    //   "type": "input",
    //   "label": "创建时间",
    //   "prop": "createTime",
    //   "span": 12
    // },	
    //   {
    //   "type": "input",
    //   "label": "更新者",
    //   "prop": "updateBy",
    //   "span": 12
    // },	  {
    //   "type": "input",
    //   "label": "更新时间",
    //   "prop": "updateTime",
    //   "span": 12
    // },	
      {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      overHidden: true,
      "span": 12
    },	
    //   {
    //   "type": "input",
    //   "label": "删除标志(0正常 1删除)",
    //   "prop": "delFlag",
    //   "span": 12
    // },	
    //   {
    //   "type": "input",
    //   "label": "租户Id",
    //   "prop": "tenantId",
    //   "span": 12
    // } 
   ]
}
